import type { App } from "vue";


// 批量注册全局组件
export const globalRegisterComponents = async (app: App) => {
    const components: any = import.meta.glob('./**/Global*.vue')

    for (const path in components) {
        const module = await components[path]()
        const componentName = path.match(/Global(.+)\.vue/)![1]
        app.component(componentName, module.default)
    }
}